package com.efruit.shopcart;

import java.util.Collection;

public class ShopCartFacade {
	private ShopCartProxy shopCartProxy;

	public ShopCartFacade() {
		shopCartProxy = new ShopCartProxy();
	}

	public int addProduct(int id) {
		return shopCartProxy.addProduct(id);
	}

	public void removeProduct(int id) {
		shopCartProxy.removeProduct(id);
	}

	public boolean setProductAmount(int id, int amount) {
		return shopCartProxy.setProductAmount(id, amount);
	}

	public Collection<ShoppingItem> getShoppingInfo() {
		return shopCartProxy.getShoppingInfo();
	}

	public float getTotal() {
		return shopCartProxy.getTotal();
	}

}
